﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo08
{
    class Program
    {
        static void Main(string[] args)
        {
            //TaskNPC npc1 = new TaskNPC("杰拉",NPCType.Task,"帮我送信");
            //npc1.speak();

            //ShopNPC npc2 = new ShopNPC("神秘商人", NPCType.Shop, "复活药水");
            //npc2.speak();

            //BlacksmithNPC npc3 = new BlacksmithNPC("奥恩", NPCType.Blacksmith, "三相之力");
            //npc3.speak();

            string a = " ";
            Rob(a);


          
        }

        static void Rob(string a) {
            a = Console.ReadLine();
            if (a=="炒菜")
            {
                CookRobots c1 = new CookRobots("01",RobotType.CookRobot,cookType.egg);
                CookRobots c2 = new CookRobots("02", RobotType.CookRobot, cookType.noodle);
                c1.Working();
                c2.Working();
            }
            if (a=="传菜")
            {
                DeliveryRobots c3 = new DeliveryRobots("03",RobotType.DeliveryRobot,3);
                DeliveryRobots c4 = new DeliveryRobots("04", RobotType.DeliveryRobot, 2);
                c3.Working();
                c4.Working();
            }

        }

    }
}
